package com.yc.supermarket.mapper;

import com.yc.supermarket.entity.Commodity;

import java.util.List;
import java.util.Map;

public interface CommodityMapper {

    List<Commodity> findAll();

    List<Commodity> findByTrem(Map<String,Object> map);

    Commodity findById(String id);

    int findTotal();

    int findTotalByTrem(Map<String,Object> map);

    int updatePromo(Map<String,Object> map);

    int deleteCommodityById(String id);

    boolean addCommodity(Commodity commodity);

    boolean modifyCommodity(Commodity commodity);

    boolean updateStatus(Commodity commodity);

}
